{% extends 'layouts/base.html' %}
{% block content %}
<h1  class="smaller hr20 light-blue">导出操作</h1>
<form name = 'check_data' method = 'post' action = '{{ url('backend/order/dealExportTask') }}'>
<label class="">开始时间：</label><input type = 'text' name = 'start_time' id = 'start_time' class = 'form_date'/>
<label style="padding-left:18px">  结束时间：</label><input type = 'text' name = 'end_time' id = 'end_time' class = 'form_date'/>
<br/>
<div class="hr16">
操作：<input class = "radius-3 btn-info padding-8" type = 'submit' value = '导出'/><span class = 'red' style="padding-left:8px;">(*将提示有文件下载，请保存)</span>
</div>  
</form>
<table class = "table table-striped table-bordered">
	<th>
		已经导出过的文件
	</th>
	<tr>
		<th class = "col-xs-4">文件名</th>
	</tr>
	{% for file in filedata %}
	<tr class = "success">
		<td><a style="color:black;line-height:28px;" href = "{{ file.name }}">{{ file.name }}</a>
			<a style="color:white;float:right;margin-right:15px;padding:5px" class="btn-danger" href = "{{ url('backend/order/delOrderExcel', {'file':file.short_name}) }}" onclick="return confirm('确定删除?');">删除</a>
		</td>
	</tr>
	{% endfor %}
</table>
<!-- inline scripts related to this page -->
<script type = "text/javascript">
	//为状态选择框添加更改事件
	$(function(){
		$('#start_time').datetimepicker({
			format: 'YYYY-MM-DD 00:00:00',
			autoclose:true,
			todayBtn:true,
		});
		$('#end_time').datetimepicker({
			format: 'YYYY-MM-DD 23:59:59',
			autoclose:true,
			todayBtn:true,
		});
	});
</script>
{% endblock %}
